package persistencia;

import java.sql.Connection;
import java.sql.DriverManager;

public class Conexao {
	private static Connection con = null;
	public static Connection getConexao() throws Exception{
		if(con==null){
			Class.forName("org.postgresql.Driver");
			con = DriverManager.getConnection("jdbc:postgresql:Bancario", "postgres","postgres" );
		}
		return con;
	}
}
